package top.infopub.mgr.bpa.service;

import com.github.pagehelper.Page;
import top.infopub.mgr.bpa.jsonVo.PrimarySureJsonVo;
import top.infopub.mgr.bpa.vo.BpaPrimarySureVo;
import top.infopub.mgr.common.vo.RspVo;
import top.infopub.model.bpa.PrimarySure;
import top.infopub.security.vo.AuthorizationVO;

import java.text.ParseException;

/**
 * Created by wurz on 2021/6/10.
 */
public interface BpaPrimarySureService {
    //分页查询
    Page<BpaPrimarySureVo> selectList(Page<BpaPrimarySureVo> page, BpaPrimarySureVo bpaPrimarySure) throws ParseException;

    Integer getCount(BpaPrimarySureVo bpaPrimarySure);

    PrimarySureJsonVo queryDetailById(String id);

    PrimarySureJsonVo queryProInfoByProCode(String proCode);

    PrimarySureJsonVo queryContractInfo(String proCode, String sureType);

    RspVo edit(PrimarySureJsonVo priSureJson, Integer submitType, AuthorizationVO vo);

    PrimarySure selectOne(String id);
}
